package proxy;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class ArithmeticProxy implements InvocationHandler {
    private Object target;
    public void setArithmeticDao(Object target){
           this.target=target;
    }
    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        Object result=method.invoke(target,args);
        return result;
    }
}
